package com.ruoyi.lock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 入住信息对象 a_home_user
 *
 * @author ruoyi
 * @date 2025-07-24
 */
@Data
public class AHomeUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 房间id
     */
    @Excel(name = "房间id")
    private Long homeId;

    /**
     * 人员id
     */
    @Excel(name = "人员id")
    private Long userId;

    /**
     * 钥匙组ID
     */
    private String keyGroupId;


    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    /** 结束时间 */
    private Date endTime;

    /**
     * 入住状态标识
     * 0: 删除
     * 1: 已入住
     */
    @Excel(name = "入住状态")
    private String isFlag;

}
